package tournamentData;


public class ScorePerRound {

	private int points;
	private int hits;
	private int tens;
	private int nines;

	public ScorePerRound(int points, int hits, int tens, int nines) {
		this.points = points;
		this.hits = hits;
		this.tens = tens;
		this.nines = nines;
	}

	public int getPoints() {
		return this.points;
	}

	public int getHits() {
		return this.hits;
	}

	public int getTens() {
		return this.tens;
	}

	public int getNines() {
		return this.nines;
	}

	public void setPoints(int points) {
		this.points = points;
	}

	public void setHits(int hits) {
		this.hits = hits;
	}

	public void setTens(int tens) {
		this.tens = tens;
	}

	public void setNines(int nines) {
		this.nines = nines;
	}

	@Override
	public String toString() {
		return this.getPoints() + " " + this.getHits() + " " + this.getTens() + " " + this.getNines();
	}

	@Override
	public boolean equals(Object object) {
		if (object instanceof ScorePerRound) {
			if (this.points == ((ScorePerRound) object).getPoints()) {
				if (this.hits == ((ScorePerRound) object).getHits()) {
					if (this.tens == ((ScorePerRound) object).getTens()) {
						if (this.nines == ((ScorePerRound) object).getNines()) {
							return true;
						}
					}
				}
			}
		}
		return false;
	}

}
